package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.getAllWeekResponse;
import com.clouddot.baipai.http.entity.response.getEvaluateByDayResponse;
import com.clouddot.baipai.http.entity.response.getEvaluateByWeekResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import java.util.ArrayList;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface IEvaluateFragmentContract {

    interface IPresenter extends IBasePresenter {

        void getAllWeek();

        void getEvaluateByDay(String ObjectType,String ClassId,String CurDate);

        void getEvaluateByWeek(String ObjectType,String ClassId,String WeekId);
    }

    interface IModel extends IBaseModel {

        Observable<getAllWeekResponse> getAllWeek(String acttype);

        Observable<ArrayList<getEvaluateByDayResponse>> getEvaluateByDay(String acttype,String ObjectType,String ClassId,String CurDate);

        Observable<ArrayList<getEvaluateByWeekResponse>> getEvaluateByWeek(String acttype,String ObjectType,String ClassId,String WeekId);

    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(int flag, String errMsg);
    }
}
